package com.topsun.posclient.finance.tree;

import java.util.ArrayList;



public class DataFactory {
	public static Object createTreeData(){
		GongNengEntity g1 = new GongNengEntity("设置");
		GongNengEntity g2 = new GongNengEntity("结算方式");
		GongNengEntity g3 = new GongNengEntity("初期余额");
		GongNengEntity g4 = new GongNengEntity("预收预付");
		GongNengEntity g5 = new GongNengEntity("收款");
		GongNengEntity g6 = new GongNengEntity("付款");
		
		FinanceNameEntity fn=new FinanceNameEntity("财务");
		
		ArrayList list =new ArrayList();
		list.add(g1);
		list.add(g2);
		list.add(g3);
		list.add(g4);
		list.add(g5);
		list.add(g6);
		fn.setChildren(list);
		
		ArrayList list1=new ArrayList();
		list1.add(fn);
		
		return list1;
	}
}
